<div id="languagebox">
  <?php foreach(sfConfig::get('app_accepted_languages') as $language) : ?>
    <a href="<?php echo localized_current_url($language); ?>"><?php echo image_tag('/images/language/'.$language.'.png',array("border"=>"0")); ?></a>  
  <?php endforeach; ?>
</div>